package com.yang.travel.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;



@Controller
public class IndexController {
    @GetMapping("/Y_travel/users/toinsertUser")
    public String toinsertuser(){
        return "/pages/user-add";
    }
    @GetMapping("/Y_travel/product/tosaveProduct")
    public String toinsertProduct(){
        return "/pages/product-add";
    }
    @GetMapping("/Y_travel/role/tosaveRole")
    public String toinsertRole(){
        return "/pages/role-add";
    }
    @GetMapping("/login")
    public String toLogin(){
        return "all-admin-login";
    }
    @GetMapping("/Y_travel/permission/tosavePermission")
    public String toAddPermission(){
        return "/pages/permission-add";
    }
    @GetMapping("/Y_travel/profile/toChangePassword")
    public String toChangePassword(){
        return "/pages/change-password";
    }
}
